<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>

    <div id="app">
        <child>
            <template slot-scope="a">
    　　　　　　<!-- {"say":"你好"} -->

                {{a}}
            </template>
        </child>
    </div>
    <script>
        Vue.component('child',{
            template:`
                <div>
                    <slot say="你好"></slot>
                </div>
            `
        })

        let vm = new Vue({
            el:'#app',
            data:{
                a: '11133332111111111131'
            }
        })
    </script>

</body>

</html>
